﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using FlickrPortfolio.Helpers;
using FlickrPortfolio.Models.Services;

namespace FlickrPortfolio.Controllers {
    public class PhotoController : Controller {
        private readonly PhotoService service = new PhotoService();

        public ActionResult Index() {
            return View(service.GetPhotos());
        }
         
        public ActionResult Show(string id) {
            return View(service.GetPhoto(id));
        }
    }
}
